﻿using System;

namespace Quail
{
    /// <summary>
    /// The task factory implementation
    /// </summary>
    public interface ITaskFactory : IDisposable
    {
        /// <summary>
        /// Gets a value indicating whether the logger supports screenshots
        /// </summary>
        bool SupportsScreenshot { get; }

        /// <summary>
        /// Begins a task
        /// </summary>
        /// <param name="session">The test session</param>
        /// <param name="taskname">The name of a task</param>
        /// <returns>A new Task object</returns>
        ITaskImplementor CreateRootTask(TestSession session, string taskname);
    }
}
